package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.DormitoryAllocationDO;
import com.pipi.sso.dao.query.DormitoryAllocationQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for DormitoryAllocation.
 */
public interface DormitoryAllocationManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DormitoryAllocationQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DormitoryAllocationQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DormitoryAllocationDO record);

    /**
     * insert selective.
     */
    long insertSelective(DormitoryAllocationDO record);

    /**
     * select by query condition.
     */
    List<DormitoryAllocationDO> selectByQuery(DormitoryAllocationQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DormitoryAllocationDO> selectByQueryWithPage(DormitoryAllocationQuery query);

    /**
     * select by primary key.
     */
    DormitoryAllocationDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DormitoryAllocationDO record,  DormitoryAllocationQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DormitoryAllocationDO record, DormitoryAllocationQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DormitoryAllocationDO record);
}